package com.mc;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
//import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
//import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

//@EnableDiscoveryClient
@SpringBootApplication
//@EnableFeignClients
@ComponentScan({"com.mc"})
@MapperScan("com.mc.book.dao")
@EnableScheduling
public class VerifyApplication extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(VerifyApplication.class);
    }


    public static void main(String[] args) {
        System.setProperty("common.http.max.total", "200");
        System.setProperty("common.http.max.per.route", "200");
        SpringApplication.run(VerifyApplication.class, args);
    }

}
